import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  OneToOne,
  JoinColumn,
} from 'typeorm';
import { CatsMember } from './cats.entity';
@Entity()
export class Character {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  like: string;

  @Column()
  food: string;

  @OneToOne((type) => CatsMember)
  @JoinColumn()
  cats: CatsMember;
}
